package com.ruoyi.user.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.user.vo.UserLabelName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 客户管理对象 t_user
 *
 * @author ruoyi
 * @date 2025-04-10
 */
@Data
public class User extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long id;

    /**
     * 公众号openid
     */
    private String openId;

    /**
     * unionid
     */
    private String unionid;

    /**
     * 电话
     */
    @Excel(name = "电话")
    private String userTel;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private Integer userSex;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String userAvatar;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String userNikeName;

    /**
     * 微信昵称
     */
    private String userWxName;

    /**
     * 余额
     */
    @Excel(name = "余额")
    private BigDecimal userBalance;

    /**
     * 邀请码
     */
    @Excel(name = "邀请码")
    private String userInvitationCode;

    /**
     * 上级被邀请
     */
    @Excel(name = "上级被邀请")
    private String userInvitedCode;

    /**
     * 来源
     */
    @Excel(name = "来源")
    private Integer userSource;

    /**
     * 身份
     */
    @Excel(name = "身份")
    private Integer userIdentity;

    /**
     * 地区
     */
    @Excel(name = "地区")
    private String userRegion;

    @Excel(name = "用户标签")
    private String userLabel;

    /**
     * 逻辑删除（0=未删除，1=已删除）
     */
    private Integer isDelete;

    //总消费金额
    private BigDecimal totalConsume;
    //本月消费金额
    private BigDecimal monthConsume;
    //总消费金额
    private BigDecimal totalRefund;
    //本月消费金额
    private BigDecimal monthRefund;

    //下单次数
    private Integer placeOrderCount;

    private String userVipName;

    private List<UserLabelName> userLabelName;
}
